<?php
declare (strict_types = 1);

namespace app\model;

use think\Model;
use think\model\concern\SoftDelete;

/**
 * @property array $coupon 优惠券详情
 * @property bool $status 状态:1=未使用,2=已使用,3=已过期
 * @property int $coupon_id 优惠券
 * @property int $deletetime
 * @property int $expiretime 过期时间
 * @property int $id
 * @property int $user_id 领取用户
 * @property string $createtime
 * @method static \think\db\Query onlyTrashed()
 * @method static \think\db\Query withTrashed()
 * @mixin \think\Model
 */
class UserCoupon extends Model
{
	use SoftDelete;
	//
	protected $createTime = 'createtime';
	protected $deleteTime = 'deletetime';
	
	protected $type = [
		'coupon'=>'json'
	];
}
